import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findAllListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/channelInfoListByPage',
        method: 'post',
        params
    })
}
export function del(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/deleteChannelInfo',
        method: 'post',
        params
    })
}
export function save(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/addChannelInfo',
        method: 'post',
        data: params
    })
}
export function editChannelInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/editChannelInfo',
        method: 'post',
        params
    })
}
export function updateChannelInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/updateChannelInfo',
        method: 'post',
        data: params
    })
}
export function restartCooperation(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/restartCooperation',
        method: 'post',
        params
    })
}
export function suspendCooperation(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/suspendCooperation',
        method: 'post',
        params
    })
}
export function channelInfoEnableListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/channelInfoEnableListByPage',
        method: 'post',
        params
    })
}
export function deleteBatchChannelInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/channelInfo/deleteBatchChannelInfo',
        method: 'post',
        params
    })
}
